public class Test {
    public static void main(String[] args) {
        MyCycleQueue myCycleQueue=new MyCycleQueue();
        myCycleQueue.offer(10);
        myCycleQueue.offer(9);
        myCycleQueue.offer(20);
        myCycleQueue.offer(19);
        myCycleQueue.offer(17);
        myCycleQueue.offer(44);
        myCycleQueue.offer(60);
        myCycleQueue.offer(70);
        System.out.println(myCycleQueue.poll());
        System.out.println(myCycleQueue.poll());
        System.out.println(myCycleQueue.peekFirst());
        System.out.println(myCycleQueue.peekLast());

    }
}
